﻿Public Class FormMain

    Private Sub សវងរកបនទបទនរToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles សវងរកបនទបទនរToolStripMenuItem.Click
        showForm(FormCustomer)
    End Sub
    Private Sub គរបគរបភញវកកToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles គរបគរបភញវកកToolStripMenuItem.Click
        showForm(FormFacilities)
    End Sub

    Private Sub គរបករងភញចញToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles គរបករងភញចញToolStripMenuItem.Click
        showForm(FormBookingRoom)
    End Sub
    Private Sub showForm(ByVal form As Form)
        form.MdiParent = Me
        form.WindowState = FormWindowState.Maximized
        form.Show()
    End Sub
End Class

